<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>Registered</title>
	<link href="css/regir.css" rel='stylesheet' type='text/css' />
	<link rel="shortcut icon" href="favicon.ico" type="image/x-icon"/>
	<link rel="shortcut icon" href="/favicon.ico" />
	<script type="application/x-javascript"> 
		addEventListener("load", function() { 
			setTimeout(hideURLbar, 0); 
			}, false); 
		function hideURLbar(){
			window.scrollTo(0,1); 
		} 
	</script>
</head>
<body>
<div class="main">
	<div class="header" >
		<h1>Registered account</h1>
	</div>
	<hr/>
	<form action="ServletRegir" method="post">
		<ul class="left-form">
			<h2>New Account:</h2>
			<li>
				<input type="text"   placeholder="Username" name="userName" required/>
				<a href="#" class="iconTicker"></a>
				<div class="clear"> </div>
			</li> 
			<li>
				<input type="text"   placeholder="sno" name="sno" required/>
				<a href="#" class="iconTicker"></a>
				<div class="clear"> </div>
			</li> 
			<li>
				<input type="password"   placeholder="password" name="password" required/>
				<a href="#" class="iconTicker"></a>
				<div class="clear"> </div>
			</li> 
			<li>
				<input type="password"   placeholder="srepassword(0000)" name="srepaw" required/>
				<a href="#" class="iconTicker"></a>
				<div class="clear"> </div>
			</li> 
			<label class="checkbox"><input type="checkbox" name="checkbox" checked=""><i style="font-size: 12px;">我已同意<a style="font-family: PingFangSC-Medium; color: #00a1d6;" href="https://www.bilibili.com/protocal/licence.html?spm_id_from=333.39.b_7265676973746572466f726d.2">《Bilibili弹幕网用户使用协议》</a>和<a style="font-family: PingFangSC-Medium; color: #00a1d6;" href="https://www.bilibili.com/blackboard/help.html?spm_id_from=333.39.b_7265676973746572466f726d.3#%E8%B4%A6%E5%8F%B7%E7%9B%B8%E5%85%B3">《Bilibili弹幕网账号中心规范》</a></i></label>
			<div class="csub">
				<input type="submit" onClick="myFunction()" value="Create Account">
				<div class="clear"> </div>
			</div>
		</ul>
	</form>
</div>
	<%
		String message = (String)request.getAttribute("error");
		if(message != null && message.equals("error")){
			%>
				<script type="text/javascript">
					alert("注册失败");
				</script>
			<% 
			request.setAttribute("mes", null);
		}
	%>
</body>
</html>